package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    //护理计划分页查询
    Page<NursingPlanVo> selectList(@Param("planName") String planName, @Param("status") Integer status);

    //新增护理计划
    void insertNursingPlan(NursingPlan nursingPlan);

    //查询护理计划信息
    NursingPlanVo getById(@Param("id") Long id);

    //更新护理计划信息
    void updateNursingPlan(NursingPlan nursingPlan);

    //删除护理计划
    void deleteNursingPlan(@Param("id") Long id);

    //查询所有护理计划
    List<NursingPlanVo> selectAllPlan();

    //根据等级计划ID查询关联的护理计划
    String selectPlans(@Param("planId") Long planId);
}
